package com.mmall.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.mmall.model.SysRoleUser;

public interface SysRoleUserMapper {
    int deleteByPrimaryKey(String id);

    int insert(SysRoleUser record);

    int insertSelective(SysRoleUser record);

    SysRoleUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysRoleUser record);

    int updateByPrimaryKey(SysRoleUser record);

    List<String> getRoleIdListByUserId(@Param("userId") String userId);

    List<String> getUserIdListByRoleId(@Param("roleId") String roleId);

    void deleteByRoleId(@Param("roleId") String roleId);

    void batchInsert(@Param("roleUserList") List<SysRoleUser> roleUserList);

    List<String> getUserIdListByRoleIdList(@Param("roleIdList") List<String> roleIdList);
}